// GameScreenAS.as - DWS
// Handles all calls to display stuff
package GibUI.GameScreen
{
	import DramCore.Actor;
	
	import DramScript.IScriptable;
	
	import flash.events.TimerEvent;
	
	import mx.containers.Canvas;
	import mx.core.Application;
	import DramScript.ExecuteCommandResult;
	import DramCore.Place;
	
	public class GibGameScreenAS extends Canvas implements IScriptable
	{
		// Layers stacked on GameScreen.mxml, back to front
		// They have to be public because of mxml rules
		public var actionLayer:GibActionLayer;
		public var uiLayer:GibUILayer;
		
		// Start the game 
		public function GibGameScreenAS()
		{
trace("GameScreenAS constructor");
			super();
		}
		public function enterActor(newActor:Actor, x:Number, y:Number, z:Number):void {
			this.actionLayer.enterActor( newActor, x, y, z );
		}
		
		public function goPlace( place:Place ):void {
			this.actionLayer.goPlace( place );
		}
		
		public function  executeCommand(target:String, command:String,paramArr:Array):ExecuteCommandResult {
			var ecr:ExecuteCommandResult = new ExecuteCommandResult();
			
			return ecr;
		}
		public function tickTock(event:TimerEvent):void {
			
		}
	}
}
